<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PresentationListWebPart.ascx.cs"
    Inherits="Clanta.Web.Controls.PresentationListWebPart" %>
<asp:ObjectDataSource ID="PresentationsByConferenceIdObjectDataSource" runat="server"
    SelectMethod="GetPresentationsByConferenceId"
    TypeName="Clanta.Web.BusinessLogic.PresentationBLL" UpdateMethod="UpdateMeasurementOnPresentation" OldValuesParameterFormatString="original_{0}" ConflictDetection="CompareAllValues" DataObjectTypeName="Clanta.Core.Domain.Presentation">
    <SelectParameters>
        <asp:Parameter Name="ConferenceId" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:GridView ID="PresentationGridView" runat="server"
    AutoGenerateColumns="False"
    OnRowDataBound="PresentationGridView_RowDataBound"
    OnRowUpdating="PresentationGridView_RowUpdating"
    DataKeyNames="id,version">
    <Columns>
        <asp:CommandField ShowSelectButton="True" ShowEditButton="True" />
        <asp:BoundField DataField="name" HeaderText="Navn" ReadOnly="True" SortExpression="Name" />
        <asp:TemplateField HeaderText="Track">
            <ItemTemplate>
                <asp:Label ID="TrackNameLabel" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="green" HeaderText="Gr&#248;n" SortExpression="Green">
            <ItemStyle BackColor="#80FF80" HorizontalAlign="Right" />
        </asp:BoundField>
        <asp:BoundField DataField="yellow" HeaderText="Gul" SortExpression="Yellow">
            <ItemStyle BackColor="#FFFF80" HorizontalAlign="Right" />
        </asp:BoundField>
        <asp:BoundField DataField="red" HeaderText="R&#248;d" SortExpression="Red">
            <ItemStyle BackColor="#FF8080" HorizontalAlign="Right" />
        </asp:BoundField>
        <asp:BoundField DataField="noofparticipants" HeaderText="Deltagere" SortExpression="noofparticipants">
            <ItemStyle HorizontalAlign="Right" />
        </asp:BoundField>
    </Columns>
</asp:GridView>
